﻿@{
    ViewBag.Title = "Index";
}

<div id="Wrapper2">
    <div id="content_header">
        <div id="headerimage">
        </div>
        <div id="theheader">@ViewBag.Header</div>
    </div>
    <!-- Left Column begins here -->
    <aside id="sidebar-wrapper">
        <nav class="sidebar">
            <!-- CONTENT GOES HERE -->
            <div id="admin_links">
                <a href = "@Url.Action("ManageProperties", "Admin")"><div class="link_box_hover">Manage Properties</div></a>
                <a href = "@Url.Action("ManageClients", "Admin")"><div class="link_box_hover">Manage Clients</div></a>
                <a href = "@Url.Action("ManageUsers", "Admin")"><div class="link_box_hover">Manage Users</div></a>
                <a href = "@Url.Action("EmailPreferences", "Admin")"><div class="link_box_hover">Email Preferences</div></a>
                <a href = "@Url.Action("ManageTaskTypes", "Admin")"><div class="link_box_hover">Manage Task Types</div></a>
                <a href = "@Url.Action("Index", "Reporting")"><div class="link_box_hover">Reporting</div></a>
            </div>

            @{
                int userID = ((thailandProject.Models.USER)Session["user"]).userID;
                if (userID == -1)
                {
                    <br />
                    <fieldset>
                        <legend>For debug purposes only</legend>
                        @Html.ActionLink("View Error Log...", "ErrorList")<br />
                        @Html.ActionLink("Generate Error (To test error logging)...", "GenerateError")<br />
                        @Html.ActionLink("Generate Nested Error (To test error logging)...", "GenerateNestedError")
                    </fieldset>
                }
            }
        </nav>
    </aside>
    <!-- Right column begins here -->
    <article id="contents">
        
    </article>
    <!-- Right column ends here -->
</div>
<!-- Div wrapper2 ends here -->

<script>
    $(document).ready(function () {
        $("#admin_links").children().children().attr('class', 'link_box_hover');
        $("#admin_links").children().children().hover(function () {
            $(this).attr('class', 'link_box');
        }, function () {
            $(this).attr('class', 'link_box_hover');
        });

        $("#admin_links").children().children().click(function () {
            $(this).attr('class', 'link_box_dark');
        });
    });
</script>